projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b500587
)
Fix valgrind's warning about an uninitialized variable that.
author
Robert Lipe
<robertlipe@gpsbabel.org>
Sun, 2 Jul 2017 23:18:32 +0000
(18:18 -0500)
committer
Robert Lipe
<robertlipe@gpsbabel.org>
Sun, 2 Jul 2017 23:18:32 +0000
(18:18 -0500)
pcx.cc
patch
|
blob
|
history
diff --git
a/pcx.cc
b/pcx.cc
index 4c3c1bcdd6cb76be46f14f3e97fe2ec331764fd9..b8e12f8628d976260ec7622c22ce04bc6b8d3e22 100644
(file)
--- a/
pcx.cc
+++ b/
pcx.cc
@@
-161,7
+161,8
@@
static void data_read(void) {
wpt_tmp->description = desc.trimmed();
wpt_tmp->icon_descr = gt_find_desc_from_icon_number(symnum, PCX);
- double lat, lon;
+ double lat = 0;
+ double lon = 0;
if (read_as_degrees || read_gpsu) {
human_to_dec(tbuf, &lat, &lon, 1);
human_to_dec(nbuf, &lat, &lon, 2);